function toggleBlocks() {
    var container = document.getElementById('container');
    var frame = document.getElementById('frame');
    var songlist = document.getElementById("song-list");

    if (frame.style.display === 'none' || frame.style.display === '') {
        frame.style.display = 'block';
        songlist.style.marginTop = "21%";
        console.log("显示隐藏框，songlist.style.marginTop改为 21%");
    } else {
        frame.style.display = 'none';
        songlist.style.marginTop = "7%";
        console.log("隐藏隐藏框，songlist.style.marginTop改为 7%");
    }
}
// 点击container时调用toggleBlocks函数
container.addEventListener('click', toggleBlocks);